package com.jell.purchase.persistence;

import com.jell.purchase.model.PromotionDo;
import com.jell.purchase.model.Query.PromotionQuery;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PromotionDao {
    /**
     * crm_promotion
     */
    long countByQuery(PromotionQuery example);

    /**
     * crm_promotion
     */
    int deleteByQuery(PromotionQuery example);

    /**
     * crm_promotion
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * crm_promotion
     */
    int insert(PromotionDo record);

    /**
     * crm_promotion
     */
    int insertSelective(PromotionDo record);

    /**
     * crm_promotion
     */
    List<PromotionDo> selectByQuery(PromotionQuery example);

    /**
     * crm_promotion
     */
    PromotionDo selectByPrimaryKey(Integer id);

    /**
     * crm_promotion
     */
    int updateByQuerySelective(@Param("record") PromotionDo record, @Param("example") PromotionQuery example);

    /**
     * crm_promotion
     */
    int updateByQuery(@Param("record") PromotionDo record, @Param("example") PromotionQuery example);

    /**
     * crm_promotion
     */
    int updateByPrimaryKeySelective(PromotionDo record);

    /**
     * crm_promotion
     */
    int updateByPrimaryKey(PromotionDo record);
}